package com.example.demo.pojo.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UserLoginRequest {
    @NotBlank(message = "用户不能为空")
    @Length(max = 16)
    private String userName;
    @NotBlank(message = "密码不能为空")
    private String password;
}
